<%@ page import="MyBean.patient" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <style type="text/css">a {
        text-decoration: none
    }</style>
</head>
<body {
      background="img/背景.png " ;
      style=" background-repeat:no-repeat ;
    background-size:100% 100%; 
    background-attachment: fixed;"
      }>
<% String admissionNumber = request.getParameter("admissionNumber");
    String patientName = request.getParameter("patientName");
    String sex = request.getParameter("sex");
    String age = request.getParameter("age");
    String patientNumber = request.getParameter("patientNumber");
    String phone = request.getParameter("phone");
    String roomno = request.getParameter("roomno");
    String startTime = request.getParameter("startTime");
    String endTime = request.getParameter("endTime");

%>
<hr>
<center>
    <h1>
        <font size="3" color="red">田园住院系统</font>
        <font size="3" color="purple">更新界面</font>
    </h1>
</center>
<hr>
<br><br>
<form action="updatePatient" method="post">
    <table border="1" align="center">
        <tr>
            <th>住院号</th>
            <th>病人姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>身份证号</th>
            <th>手机号码</th>
            <th>病床号</th>
            <th>住院时间</th>
            <th>出院时间</th>
        </tr>
        <tr>

            <th><input type="text" name="a" value="<%=admissionNumber %>" readonly="readonly"></th>
            <th><input type="text" name="b" value="<%=patientName %>"></th>
            <th><input type="text" name="c" value="<%=sex %>"></th>
            <th><input type="text" name="d" value="<%=age %>"></th>
            <th><input type="text" name="e" value="<%=patientNumber %>"></th>
            <th><input type="text" name="f" value="<%=phone %>"></th>
            <th><input type="text" name="g" value="<%=roomno %>"></th>
            <th><input type="text" name="h" value="<%=startTime %>" readonly="readonly"></th>
            <th><input type="text" name="i" value="<%=endTime %>" readonly="readonly"></th>
        </tr>
        <tr>
            <th colspan="8" align="center"><input type="submit" value="更新"></th>
        </tr>
        <tr>
            <th colspan="8" align="center"><a href="index.jsp">返回主页面</a></th>
        </tr>
    </table>
</form>
<br>
<hr>
<center><em><p style="background:yellow">Copyright &copy; 2020 TianYuan Web Hospital,Nuc.
    <h1></em></center>
</body>
</html>
